//
//  Color.m
//  作业4
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Color.h"

@implementation Color
- (instancetype)initWithName:(NSString *)name
                       value:(NSString *)value {
    self = [super init];
    if (self) {
        _name = name;
        _value = value;
    }
    return self;
}
- (NSString *)getName {
    return _name;
}
- (NSString *)getValue {
    return _value;
}
- (NSString *)description {
    return [NSString stringWithFormat:@"COLOR-->%@ %@",_name,_value];
}
@end
